package com.leyou.page.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class HelloController {

    /**
     * 显示hello模板页面
     * @return
     */
    @GetMapping("/hello")
    public String hello(Model model){
        model.addAttribute("msg","hello ,Thymeleaf !!");
        return "hello";
    }
}
